<%-- 
    Document   : nuevoComiteLocal
    Created on : 25/06/2009, 07:24:29 PM
    Author     : ADMINISTRADOR
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix="r" uri="http://richfaces.ajax4jsf.org/rich" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>

<script language="javascript" src="../js/funciones.js"></script>
<link href="/colegiatura/Estilos/estilosEsymons.css" rel="stylesheet" type="text/css" />

<f:view>
<h:form id="frmNewCom">
<table width="100%" border="0">
  <tr><td align="left" class="texto3">
     <h:outputLabel value="Mantenimiento de Comité Local" /></td>
  </tr>
     <tr><td height="20">
     <a4j:outputPanel ajaxRendered="true">
    <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                warnClass="warnClass" showDetail="true" errorStyle="color:red;"
                warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
    </a4j:outputPanel>
      </td>
  </tr>
  <tr><td>
  <fieldset>
      <legend>Registrar Comité Local</legend>
      <table width="700" border="0">
      <tr>
    <td width="100" height="25">&nbsp;</td>
    <td width="130" align="left"><h:outputLabel value="Consejo Departamental:" styleClass="texto20" /> </td>
    <td align="left">
        <h:selectOneMenu value="#{comiteController.comite.cdeCodigo}" styleClass="fondo012">
         <f:selectItem itemLabel="----Consejo Departamental----"/>
         <f:selectItems value="#{consejoController.selectListaItem}" />
     </h:selectOneMenu></td>
    </tr>
  <tr>
    <td height="25">&nbsp;</td>
    <td width="130" align="left"><h:outputLabel value="Comite Local :" styleClass="texto20" /> </td>
    <td align="left"><h:inputText value="#{comiteController.comite.cloNombre}" size="45" styleClass="fondo012" /></td>
    </tr>
    <tr>
    <td height="25">&nbsp;</td>
    <td width="130" align="left"><h:outputLabel value="Fecha Fundación :" styleClass="texto20" /> </td>
    <td align="left">
        <r:calendar value="#{comiteController.comite.clofechaFundacion}"
         datePattern="dd/MM/yyyy" cellWidth="15" styleClass="cajaCentrada" inputClass="cajaCentrada" />
        <%--t:inputCalendar id="fechaFund" value="#{comiteController.comite.clofechaFundacion}" styleClass="fondo012"
        popupDateFormat="dd/MM/yyyy" popupTodayString="Hoy día es:" renderAsPopup="true" renderPopupButtonAsImage="true"/--%></td>
    </tr>
  <tr>
    <td height="25">&nbsp;</td>
    <td width="130" align="left">
        <h:outputLabel value="Estado : " styleClass="texto20" /></td>
    <td align="left">
        <h:selectOneMenu value="#{comiteController.comite.cloEstado}"  styleClass="fondo012">
         <f:selectItem itemLabel="----Estado----" />
         <f:selectItem itemLabel="Activo" itemValue="true"/>
         <f:selectItem itemLabel="Inactivo" itemValue="false" />
     </h:selectOneMenu></td>
    </tr>
  <tr><td colspan="3" height="15"></td></tr>
  <tr>
    <td>&nbsp;</td>
    <td width="130" align="left"></td>
    <td align="center">
        <h:commandButton action="#{comiteController.grabar}" value="Guardar" styleClass="enlace9" />
        <h:commandButton action="ir_a_listar" value="Cancelar" styleClass="enlace9" /></td>
    </tr>
      </table>
  </fieldset>
    </td>
  </tr>   
</table>
</h:form>
</f:view>
